/**
 * 医生护士工作站-医生工作站信息
 *
 * @author cxl
 * @date 2021/11/24
 */
import { axios } from '@/utils/request'

/**
 * 查询列表
 */
export function workstationList(parameter) {
  return axios({
    url: '/doctorWorkstation/list',
    method: 'get',
    params: parameter
  })
}


/**
 * 开始治疗
 */
export function treatment(parameter) {
  return axios({
    url: '/doctorWorkstation/treatment',
    method: 'get',
    params: parameter
  })
}

/**
 * 医生工作站-基本信息
 */
export function DoctorBasicInformation(parameter) {
  return axios({
    url: '/doctorWorkstation/getBasicInformation',
    method: 'post',
    data: parameter
  })
}




/**
 * 治疗详情
 */
export function treatmentDetails(parameter) {
  return axios({
    url: '/doctorWorkstation/treatmentDetails',
    method: 'get',
    params: parameter
  })
}

/**
 * 治疗详情-手术情况
 */
export function SurgerySituation(parameter) {
  return axios({
    url: '/doctorWorkstation/getSurgerySituation',
    method: 'post',
    data: parameter
  })
}

/**
 * 医生处方相关-处方列表
 */
export function PrescriptionList(parameter) {
  return axios({
    url: '/doctorWorkstation/getPrescriptionList',
    method: 'get',
    params: parameter
  })
}

/**
 * 医生处方相关-历史处方
 */
export function HistoryPrescriptionList(parameter) {
  return axios({
    url: '/doctorWorkstation/getHistoryPrescriptionList',
    method: 'get',
    params: parameter
  })
}

/**
 * 医生处方相关-处方作废
 */
export function invalidPrescription(parameter) {
  return axios({
    url: '/doctorWorkstation/invalidPrescription',
    method: 'get',
    params: parameter
  })
}


/**
 * 医生处方相关-获取处方模板
 */
export function PrescriptionTemplate(parameter) {
  return axios({
    url: '/doctorWorkstation/getPrescriptionTemplate',
    method: 'get',
    params: parameter
  })
}

/**
 * 医生处方相关-获取模板处方明细
 */
export function getPrescriptionTemplateDetail(parameter) {
  return axios({
    url: '/doctorWorkstation/getPrescriptionTemplateDetail',
    method: 'get',
    params: parameter
  })
}


/**
 * 医生处方相关-提交模板处方
 */
export function addOrUpdatePrescription(parameter) {
  return axios({
    url: '/doctorWorkstation/addOrUpdatePrescription',
    method: 'post',
    data: parameter
  })
}


/**
 * 医生处方相关-获取下拉列表
 */
export function getDropdownMenuByCode(parameter) {
  return axios({
    url: '/common/dropdown/getDropdownMenu',
    method: 'get',
    params: parameter
  })
}

/**
 * 医生处方相关-双击获取产品信息
 */
export function PrescriptionDetailByProductId(parameter) {
  return axios({
    url: '/doctorWorkstation/getPrescriptionDetailByProductId',
    method: 'get',
    params: parameter
  })
}

/**
 * 医嘱情况
 */
export function DoctorOrderList(parameter) {
  return axios({
    url: '/doctorWorkstation/getDoctorOrderList',
    method: 'post',
    data: parameter
  })
}


/**
 * 医生处方相关-保存医嘱
 */
export function saveTheDoctorOrder(parameter) {
  return axios({
    url: '/doctorWorkstation/saveTheDoctorOrder',
    method: 'post',
    data: parameter
  })
}

/**
 * tabs-常用医嘱列表-医嘱列表-药物列表-模板列表
 */
export function OrderLists(parameter) {
  return axios({
    url: '/doctorWorkstation/getOrderLists',
    method: 'post',
    data: parameter
  })
}



/**
 * 模板列表明细
 */
export function getAdviceTemplateLists(parameter) {
  return axios({
    url: '/doctorWorkstation/getAdviceTemplateLists',
    method: 'post',
    data: parameter
  })
}

/**
 * 双击获取列表数据信息
 */
export function getDoctorAdviceInfo(parameter) {
  return axios({
    url: '/doctorWorkstation/savaDoctorAdvice',
    method: 'post',
    data: parameter
  })
}

/**
 * 待手术人员
 */
export function surgicalStaffList() {
  return axios({
    url: '/surgicalWorkstation/surgicalStaff/list',
    method: 'get'
  })
}

/**
 * 手术室
 */
export function surgicalRoomList() {
  return axios({
    url: '/surgicalWorkstation/surgicalRoom/list',
    method: 'get'
  })
}
/**
 * 护士-门诊区列表
 */
export function nurseStaffList(params) {
  return axios({
    url: '/nurseWorkstation/treatmentStaff/list',
    method: 'get',
    params: params
  })
}

/**
 * 护士-候床用户列表
 */
export function waitingBedUserList(params) {
  return axios({
    url: '/nurseWorkstation/waitingBedUser/list',
    method: 'get',
    params: params
  })
}

/**
 * 护士-医嘱情况
 */
export function orderSituation(params) {
  return axios({
    url: '/nurseWorkstation/orderSituation',
    method: 'post',
    data: params
  })
}


/**
 * 护士-执行医嘱情况
 */
export function ExecuteDoctorOrder(params) {
  return axios({
    url: '/nurseWorkstation/getExecuteDoctorOrder',
    method: 'post',
    data: params
  })
}

/**
 * 护士-执行医嘱情况
 */
export function saveExecuteDoctorOrder(params) {
  return axios({
    url: '/nurseWorkstation/saveExecuteDoctorOrder',
    method: 'post',
    data: params
  })
}


/**
 * 护士-执行信息
 */
export function DoctorOrderInfo(params) {
  return axios({
    url: '/nurseWorkstation/getExecutor',
    method: 'post',
    data: params
  })
}

/**
 * 护士-执行信息-产品信息
 */
export function DoctorOrderInfoProduct(params) {
  return axios({
    url: '/nurseWorkstation/getExecutorProduct',
    method: 'post',
    data: params
  })
}




/**
 * 护士-获取物料
 */
export function getItemProduct() {
  return axios({
    url: '/nurseWorkstation/getItemProduct',
    method: 'get',
  })
}






/**
 * 医生住院客户列表
 */
export function doctorBedList(params) {
  return axios({
    url: '/doctorWorkstation/getWorkstationBedList',
    method: 'get',
    params: params
  })
}

/**
 * 护士住院客户列表
 */
export function nurseBedList(params) {
  return axios({
    url: '/nurseWorkstation/treatmentBed/list',
    method: 'get',
    params: params
  })
}

/**
 * 分配床位
 */
export function assignBed(params) {
  return axios({
    url: '/nurseWorkstation/hospitalizedRegistration',
    method: 'get',
    params : params
  })
}

/**
 * 转入院
 */
export function transferHospital(parameter) {
  return axios({
    url: '/nurseWorkstation/treatmentStaff/transferHospital',
    method: 'get',
    params: parameter
  })
}
/**
 * 分配手术室
 */
export function assignRoom(params) {
  return axios({
    url: '/surgicalWorkstation/surgicalRoom/assign',
    method: 'post',
    data : params
  })
}


/**
 * 开始手术
 */
export function startOperate(params) {
  return axios({
    url: '/surgicalWorkstation/surgicalRoom/start',
    method: 'get',
    params:params
  })
}


/**
 * 结束手术
 */
export function finishOperate(params) {
  return axios({
    url: '/surgicalWorkstation/surgicalRoom/finish',
    method: 'get',
    params:params
  })
}

/**
 * 取消手术
 */
export function cancelOperate(params) {
  return axios({
    url: '/surgicalWorkstation/surgicalRoom/cancel',
    method: 'get',
    params:params
  })
}


/**
 * 更换手术室
 */
export function switchOperate(params) {
  return axios({
    url: '/surgicalWorkstation/surgicalRoom/switch',
    method: 'get',
    params:params
  })
}


/**
 * 手术管理-手术信息
 */
export function operateInfo(params) {
  return axios({
    url: '/surgicalWorkstation/surgicalRoom/info',
    method: 'get',
    params:params
  })
}


/**
 * 手术管理-产品信息
 */
export function productList(params) {
  return axios({
    url: '/surgicalWorkstation/surgicalRoom/getProductList',
    method: 'get',
    params:params
  })
}


/**
 * 手术管理-提交
 */
export function updateOperateInfo(params) {
  return axios({
    url: '/surgicalWorkstation/surgicalRoom/addProductList',
    method: 'post',
    data:params
  })
}


